package org.example.task.converter;

import org.example.task.model.dto.role.CreateRole;
import org.example.task.model.po.Role;
import org.example.task.model.vo.role.RoleVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface RoleConverterMapper {
    Role createRoleToRole(CreateRole createRole);
    List<RoleVO> rolesToRoleVOs(List<Role> roles);
}
